const { app } = require('electron');
const { initWinow } = require('./services/windowMng');
require('./services/ipcMain');
require('./services/staticServer');

const FileUtils = require('./utils/fileUtils');
FileUtils.setUpPageFile();

function main() {
  app.whenReady().then(() => {
    initWinow();
  });

  app.on('window-all-closed', function () {
    app.quit();
  });
}

main();
